package com.lyn.utils;

/**
 * @author longyn 2023/1/15
 * @version 1.0.0
 */
public class HtmlUtil {

    public static String generateHtml(String ... values){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < values.length; i++) {
            if (i == 0){
                sb.append("<h3 class = \"title\">").append(values[i]).append("</h3>").append("\n");
            }else {
                sb.append("<h4 class = \"subTitle\">").append(values[i]).append("</h4>").append("\n");
            }
        }
        return sb.toString();
    }


    public static void main(String[] args) {
        System.out.println(generateHtml("你好","你好好","你好好好"));
    }
}
